package reduce.fz.com.reduce.activity;

import android.os.Bundle;
import android.widget.FrameLayout;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.fragment.TeamDetailFragment;

/**
 * 小组详情
 */

public class TeamDetailActivity extends BaseActivity {
   private Long teamid;

    private FrameLayout teamContainer;
    private TeamDetailFragment detailFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       teamid= getIntent().getLongExtra("teamid",0);
        attachFragment();
    }


    public void attachFragment()
    {
        TeamDetailFragment fragment= TeamDetailFragment.create(teamid);

        getSupportFragmentManager().beginTransaction().replace(R.id.team_detail_container,fragment).commit();
    }

    @Override
    public int getContentRid() {
        return R.layout.activity_team_detail;
    }

    @Override
    public void initWidget() {
        teamContainer= (FrameLayout) findViewById(R.id.team_detail_container);
    }

    @Override
    public void initListener() {

    }


}
